package com.aiyige.utils;

import android.graphics.Typeface;
import android.widget.TextView;

/**
 * Created by zhuyakun on 2017/11/22.
 */

public class FontUtil {

    public static void setFont(TextView textView, String fontName) {
        Typeface font = Typeface.createFromAsset(textView.getContext().getAssets(), "DINOT-Medium.otf");
        textView.setTypeface(font);
    }

    public static void setNumberFont(TextView textView) {
        setFont(textView, "DINOT-Medium.otf");
    }
}
